unsigned short checksum (unsigned char *buf, int nbytes);
